package com.ss.android.lockscreen.activity.lock;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import com.ss.android.lockscreen.http.data.ScreenCell;

final class j extends AnimatorListenerAdapter {
    private final LockScreenActivity b;
    private final ScreenCell a;

    j(LockScreenActivity arg1, ScreenCell arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void onAnimationEnd(Animator arg7) {
        int v1;
        int v2 = -1;
        w v3 = LockScreenActivity.m(this.b);
        ScreenCell v4 = this.a;
        if(v4 == null || v3.b == null) {
            v1 = v2;
        }
        else {
            int v0 = 0;
            v1 = v2;
            while(v0 < v3.b.size()) {
                if(v3.b.get(v0) == v4) {
                    v1 = v0;
                }

                ++v0;
            }
        }

        if(v1 != v2) {
            LockScreenActivity.a(this.b, this.a);
            LockScreenActivity.a(this.b).setCurrentItem(v1 + 1, true);
        }
    }
}

